package com.ssm.design.chain.handler.v4;

import com.ssm.design.chain.context.OrderHandleContextV3;
import com.ssm.design.chain.handler.v3.AbstractOrderHandlerV3;
import com.ssm.design.common.enums.OrderTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@Order(200)
public class RebateOrderHandlerV4 implements OrderHandlerV4 {

    @Override
    public OrderTypeEnum getTypeEnum() {
        return null;
    }

    @Override
    public void doHandle(OrderHandleContextV3 context, Object... args) {
        log.info("default rebate order ... ");

        distributeIntegral(context, args);
    }

    protected void distributeIntegral(OrderHandleContextV3 context, Object[] args) {
        log.info("default rebate order distribute Integral ... ");
    }
}
